package entity;

import java.io.Serializable;
import java.util.List;
import javax.persistence.*;

@Entity
@DiscriminatorValue("INSUMO")
public class InsumoBD extends ProductoBD implements Serializable {

	private static final long serialVersionUID = 1L;

	@Embedded
	@OneToMany
	private List<InsumoBD> sustitutos;

	public InsumoBD() {
		super();
	}

	public void setSustitutos(List<InsumoBD> sustitutos) {
		this.sustitutos = sustitutos;
	}

	public List<InsumoBD> getSustitutos() {
		return sustitutos;
	}

}
